import request from "@/utils/request";

// AI
export const reqChat=(uid,keyword)=>{
  const url = `/api/answer/ai/sendQuestion/${uid}/${keyword}`;
  return request({
    url:url,
    method:'GET',
  })
}

// 获取推荐医生
export const reqGetDocinfo=(description)=>{
  const url=`/api/answer/doctorList/${description}`
  return request({
    url:url,
    method:'GET'
  })
}

// 获取咨询记录
export const reqGetConsultation=(uid)=>{
  const url=`/api/answer/getChatedDoctor/${uid}`
  return request({
    url:url,
    method:'GET'
  })
}

// 获取聊天记录
export const reqChatHistory=(page,pageSize,userid,doctorid)=>{
  const url=`/api/answer/historyChat/${page}/${pageSize}/${userid}/${doctorid}`
  return request({
    url:url,
    method:'GET'
  })
}